﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;

public partial class order_alipay_returnurl : FBasePage
{
    // Fields
    protected string url = string.Empty;

    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        NameValueCollection system = new SystemConfig().GetSystem();
        string str = base.Request["out_trade_no"];
        string str2 = base.Request["trade_no"];
        if ((system["alipay_Manual_SecuredTransactions"] == "1") && (base.Request["trade_status"] == "WAIT_BUYER_CONFIRM_GOODS"))
        {
            this.url = "https://lab.alipay.com/consume/queryTradeDetail.htm?tradeNo=" + str2;
        }
        else
        {
            base.Response.Redirect("~/order/success.aspx?id=" + str);
            base.Response.End();
        }
    }

}